package de.dhbw.karlsruhe.picsim.gui.control;

import javax.swing.*;
import java.awt.event.ActionEvent;

/**
 * Created by IntelliJ IDEA.
 * User: goesen
 * Date: Apr 26, 2010
 * Time: 2:57:27 PM
 */
final class PauseAction extends AbstractAction {
    private final PlayAction playaction;

    public PauseAction(final PlayAction playaction) {
        super("Pause");
        this.playaction = playaction;
    }

    @Override
    public void actionPerformed(final ActionEvent e) {
        playaction.setPlay(false);
        setEnabled(false);
    }
}
